@import './reset.scss';
@import './transition.scss';
@import './vant-reset.scss';

html,
body,
#app {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  top: 0;
  left: 0;
  padding: 0;
  margin: 0;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  overscroll-behavior-x: none;
  touch-action: pan-x pan-y;
}

body {
  font-size: 14px;
  background: #F7F7F7;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 0;
  background: transparent;
}
.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.text-number {
  font-family: D-DIN-PRO, D-DIN-PRO;
  font-size: 16px;
  &.large {
    font-size: 32px;
  }
  &.small {
    font-size: 12px;
  }
  &.bold {
    font-weight: 600;
  }
}
.rich-text {
  color: #000;
  background-color: #fff;
  h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
  }
  p, span {
    font-size: 14px!important;
    line-height: 24px;;
  }
  img, video {
    width: 100%;
  }
  video::-webkit-media-controls-download-button {
    display:none;
  }
  ol,ul { padding-left: 0!important;}
  li { margin-left: 0!important; }
  table {
    width: 100%;
    table-layout: fixed;
  }
  table th, table td {
    width: 20% !important;
    text-align: center;
    border: 1px solid #ededed;
    word-break: break-word; /* 防止单元格内容溢出 */
    overflow-x: auto;
  }
}
.fl {
  float: left;
}
.fr {
  float: right;
}
.clearfix {
  &:after {
    content: "";
    display: table;
    clear: both;
  }
}
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.fixed {
  position: fixed;
}
.flex {
  display: flex;
}
.flex-col{
  display: flex;
  flex-direction: column;
}
.flex-row{
  display: flex;
  flex-direction: row;
}
.flex1 {
  flex: 1;
}
.items-center {
  align-items: center;
}
.align-items-end {
  align-items: end;
}
.space-between,.justify-between {
  justify-content: space-between;
}

.full-width {
  width: 100%;
}
.justify-left{
    justify-content: flex-start;
}
.space-around {
  justify-content: space-around;
}
.justify-right {
  justify-content: flex-end;
}
.flex-center{
  justify-content: center;
  align-items: center;
}
.flex-wrap {
  flex-wrap: wrap;
}

.flex-align-center {
  align-items: center;
}
.bold {
  font-weight: bold;
}

.color-e60012 {
  color: #e60012;
}
.color-000, .color-000000 {
  color: #000;
}
.color-252525 {
  color: #252525;
}
.color-535353 {
  color: #535353;
}
.color-707070 {
  color: #535353;
}
.color-a2a2a2 {
  color: #a2a2a2;
}
.color-bbb, .color-bbbbbb {
  color: #bbbbbb;
}
.color-d4d4d4 {
  color: #d4d4d4;
}
.color-ededed {
  color: #ededed;
}
.color-f7f7f7 {
  color: #f7f7f7;
}
.color-fff, .color-white, .color-ffffff {
  color: #fff;
}
.ellipsis {
  display:-webkit-box;
  overflow:hidden;
  text-overflow:ellipsis;
  -webkit-line-clamp:1;
  line-clamp: 1;
  line-break:anywhere;
  -webkit-box-orient:vertical;
}
.ellipsis-l2 {
  display:-webkit-box;
  overflow:hidden;
  text-overflow:ellipsis;
  -webkit-line-clamp:2;
  line-clamp: 2;
  line-break:anywhere;
  -webkit-box-orient:vertical;
}
.align-left {
  text-align: left;
}
.align-center {
  text-align: center;
}
.align-baseline {
  vertical-align: baseline;
}
.align-right {
  text-align: right;
}

.search-bar-fixed {
  position: fixed;
  z-index: 99;
  width: 100%;
  height: 52px;
  padding: 8px 16px;
  background-color: #fff;
  &::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-bottom: 1px solid #ededed;
    transform: scaleY(0.5);
  }
  .search-box {
    font-size: 14px;
    color: #a2a2a2;
    line-height: 20px;
    padding: 8px 12px;
    border-radius: 20px;
    background-color: #f7f7f7;
    &::before {
      content: '';
      float: left;
      width: 20px;
      height: 20px;
      margin-right: 4px;
      background: url('../assets/icon-search2x.png') no-repeat center;
      background-size: cover;
    }
  }
}
.page-loading {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  background-color: #fff;
  z-index: 10000;
  &::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -80px;
    margin-top: -80px;
    width: 160px;
    height: 160px;
    background: url($serverImg + 'transition.gif') no-repeat center;
    background-size: cover;
  }
}

.custom-marker-shop0 {
  width: 40px;
  height: 40px;
  background: url('../assets/marker_shop2x.png') no-repeat center;
  background-size: cover;
}
.custom-marker-shop1 {
  width: 56px;
  height: 56px;
  background: url('../assets/marker_shop_m2x.png') no-repeat center;
  background-size: cover;
}
.custom-marker-moto {
  width: 40px;
  height: 40px;
  background: url('../assets/marker_moto2.png') no-repeat center;
  background-size: cover;
}
.marker-info {
  position: absolute;
  // top: -40px;
  // left: -50%;
  font-size: 14px;
  color: #252525;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  background:#fff;
  border-radius: 8px;
  padding: 12px 28px 12px 12px;
  .marker-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-8px);
    vertical-align: middle;
    margin-left: 4px;
    width: 16px;
    height: 16px;
    background: url('../assets/icon-right2x.png') no-repeat center;
    background-size: cover;
  }
}
.anchorBL {
  display: none;
}

.map-copyright {
  position: fixed;
  top: 10px;
  z-index: 1;
  padding-top: constant(safe-area-inset-top);
  padding-top: env(safe-area-inset-top);
  width: 100%;
  color: #bbb;
  font-size: 12px;
  text-align: center;
}
.divider {
  border-bottom: 1px solid #ededed;
}
.divider-top {
  border-top: 1px solid #ededed;
}
.border-gray{
  border: 1px solid #BBBBBB;
}

.ml-16 {
  margin-left: 16px;
}
.pl-16{
  padding-left: 16px;
}
.pr-16{
  padding-right: 16px;
}
.pt-22{
  padding-top: 22px;
}
.pb-20{
  padding-bottom: 20px;
}
.shrink0{
  flex-shrink: 0;
}
.radius-16{
  border-radius: 16px;
}
.shadow-small {
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
}